# Copyright 2012 Lou Parslow
#
#   Licensed under the Apache License, Version 2.0 (the "License");
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.
#
#

`gem update dev`
require 'dev'

QCNET_REV='12'
OGNET_REV='373'
UINET_REV='19'

PROJECT = Dev::Project::new({
  name: 'exnet',
  dep: {  nunit:{ uri: 'http://third-party.googlecode.com/svn/trunk/NUnit/2.6.0.12051',
                  dir: 'google-third-party/NUnit/2.6.0.12051'},
		  qcnet:{ uri: 'http://qcnet.googlecode.com/svn/trunk@#{QCNET_REV}',
		          dir: 'google/qcnet/#{QCNET_REV}',
				 rake: 'default', cache: 'true' },
		  ognet:{ uri: 'http://ognet.googlecode.com/svn/branches/prototype2@#{OGNET_REV}',
		          dir: 'google/ognet/#{OGNET_REV}',
				 rake: 'default', cache: 'true' },
		  uinet:{ uri: 'http://uinet.googlecode.com/svn/trunk@#{UINET_REV}',
		          dir: 'google/uinet/#{UINET_REV}',
				 rake: 'default', cache: 'true' }

	   },
   replace:
       {  qcnet: { glob: '*.csproj', search: /google\\qcnet\\[\d]+/, replace: "google\\qcnet\\#{QCNET_REV}" },
	      ognet: { glob: '*.csproj', search: /google\\ognet\\[\d]+/, replace: "google\\ognet\\#{OGNET_REV}" },
		  uinet: { glob: '*.csproj', search: /google\\uinet\\[\d]+/, replace: "google\\uinet\\#{UINET_REV}" }
	   }
})

task :default => [ :info, :clean, :add, :setup, :replace, :compile, :test, :commit, :update ] 
